#include "OnlineToolCallBack.h"

/*
 *
 */
int32_t OnlineAudioStart_CallBack(int32_t SampleRate,int32_t BitWidth,uint32_t Volume,int Priority)
{
	//pcm=0 
	return AudioTalkPlaySet(0, 16000 ,16 , 99);
}
/*
 *
 */
int32_t OnlineAudioStop_CallBack()
{
	return AudioTalkPlayFinish();
}
/*
 *
 */
int32_t OnlineAudioSendData_CallBack(uint8_t *buffer,int32_t length)
{
	if(NULL == buffer || length == 0) return -1;
	return AudioTalkPlayFrame(buffer, length);
}
